/*
 *
 * 名称：玄空风水
 * 功能：目前只计算180年大运
 * 作者：清河张
 * 时间：2025.05.11
 *
 */
// #include "base/utils.h"
#include "xkxing9.h"
#include <cstdio>


using namespace XKFS;

template<> XING_T XING9::_objs[9] =
{
    { 0, WUXING_T::SHUI, "白", "贪狼",},
    { 1, WUXING_T::TUUU, "白", "左辅",},
    { 2, WUXING_T::MUUU, "碧", "禄存",},
    { 3, WUXING_T::MUUU, "绿", "文曲",},
    { 4, WUXING_T::HUOO, "紫", "右弼",},
    { 5, WUXING_T::TUUU, "黑", "巨门",},
    { 6, WUXING_T::JINN, "赤", "破军",},
    { 7, WUXING_T::JINN, "白", "武曲",},
    { 8, WUXING_T::TUUU, "黄", "廉贞",},
};


XING_T::XING_T():
    CT(X____, ""), _wx(WUXING_T::WX__), _wxxqfw(-1), _wxxqfg(-1), _clr("")
{

}

XING_T::XING_T(int id, int wx, const char* clr, const char* name):
    CT(id, name), _wx(wx), _wxxqfw(-1), _wxxqfg(-1), _clr(clr)
{

}

WUXING5 XING_T::wx5() const
{
    return _wx;
}

void XING_T::gyu(WUXING5 wx)
{
    _wxxqfg = wx - wx5();
}

void XING_T::wyu(WUXING5 wx)
{
    _wxxqfw = wx - wx5();
}

WUXING5::WXXQF XING_T::wxxqfg() const
{
    return _wxxqfg;
}

WUXING5::WXXQF XING_T::wxxqfw() const
{
    return _wxxqfw;
}

const char *XING_T::clr() const
{
    return _clr;
}

